<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace S3\Sample1Bundle\Service;

use Symfony\Component\Templating\EngineInterface;
/**
 * Description of NewsletterManager
 *
 * @author minh.ton
 */
class NewsletterManager {
    protected $mailer;
    protected $templating;


    public function __construct(\Swift_Mailer $mailer, EngineInterface $templating) {
        $this->mailer = $mailer;
        $this->templating = $templating;
    }
            
    public function sendMail()
    {
        return 'this is the function sendMail';
    }
    /*public function __construct(MyMailer $mailer = null) {
        $this->mailer = $mailer;
    }
    
    public function setMailer(MyMailer $mailer) {
        $this->mailer = $mailer;
    }*/
}

?>
